<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_course_score_weight".
 *
 * @property string $id
 * @property string $course_id 课程id
 * @property string $learning_progress_weight 学习进度
 * @property string $task_weight 任务权重
 * @property string $test_weight 测试权重
 * @property string $exam_weight 考试权重
 * @property string $sign_weight 签到权重
 * @property string $visited_weight 访问比重
 * @property string $forum_weight 互动权重
 * @property string $other_weight 其它权重
 * @property string $get_score_progress 资源查看获取学分的必要观看进度
 * @property string $reply_score 发表或回复一个讨论问题得分
 * @property string $concern_score 关注一个讨论提问得分
 * @property int $visited_num 获得满分的次数
 * @property string $pass_line 及格线
 * @property string $create_by 创建者
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time 修改时间
 * @property int $del_flag
 * @property string $project_id
 */
class TCourseScoreWeight extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_course_score_weight';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id', 'create_time', 'del_flag'], 'required'],
            [['learning_progress_weight', 'task_weight', 'test_weight', 'exam_weight', 'sign_weight', 'visited_weight', 'forum_weight', 'other_weight'], 'number'],
            [['visited_num', 'del_flag'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
            [['id', 'course_id', 'create_by', 'update_by', 'project_id'], 'string', 'max' => 36],
            [['get_score_progress', 'reply_score', 'concern_score', 'pass_line'], 'string', 'max' => 5],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'course_id' => 'Course ID',
            'learning_progress_weight' => 'Learning Progress Weight',
            'task_weight' => 'Task Weight',
            'test_weight' => 'Test Weight',
            'exam_weight' => 'Exam Weight',
            'sign_weight' => 'Sign Weight',
            'visited_weight' => 'Visited Weight',
            'forum_weight' => 'Forum Weight',
            'other_weight' => 'Other Weight',
            'get_score_progress' => 'Get Score Progress',
            'reply_score' => 'Reply Score',
            'concern_score' => 'Concern Score',
            'visited_num' => 'Visited Num',
            'pass_line' => 'Pass Line',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
            'project_id' => 'Project ID',
        ];
    }
}
